<?php
	return [
        'class' => 'yii\swiftmailer\Mailer',  
        'useFileTransport' =>false,//这句一定有，false发送邮件，true只是生成邮件在runtime文件夹下，不发邮件
        'transport' => [  
            'class' => 'Swift_SmtpTransport',  
            'host' => 'mail.euchost.com',  //每种邮箱的host配置不一样
            'username' => 'warning@vamaker.com',  
            'password' => '11aa!!!!',  
            'port' => '587',  
            'encryption' => 'tls',  
        ],   
        'messageConfig'=>[  
            'charset'=>'UTF-8',  
            'from'=>['warning@vamaker.com'=>'warning@vamaker.com']  
        ],
    ];
